import React, { Component } from 'react'
import TweenOne from 'rc-tween-one';
import './index.less'

export default class LinkCard extends Component {
  render() {
    return (
      <TweenOne
       className="link-card"
       animation={{ 
        rotate: 120, 
        duration: 1000
      }}
      >
        <a target="_blank" rel="noopener noreferrer" href={this.props.data.url}>
          <span>{this.props.data.name}</span>
        </a>
      </TweenOne>
    )
  }
}
